package com.poseidon.web.weixin.sdk.cp.untils;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;


public class RequestUtils {
    protected String BaseUrl = "";

    RequestUtils()  {

    }

    public void doGet() {

        StringBuffer params = new StringBuffer();

        /**
         * 参数字符串处理，同时参数值需要URLEncoder编码
         */
        try {
            params.append("name=" + URLEncoder.encode("&", "utf-8"));

            params.append("&");
            params.append("age=24");
            System.out.print(params);
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }

    }
}


